package eu.irreality.dai.util;

public class Direction
{

    private int rowOffset;
    private int colOffset;

    public static Direction NORTH = new Direction(-1, 0);
    public static Direction SOUTH = new Direction(1, 0);
    public static Direction WEST = new Direction(0, -1);
    public static Direction EAST = new Direction(0, 1);
    public static Direction NORTHWEST = new Direction(-1, -1);
    public static Direction NORTHEAST = new Direction(-1, 1);
    public static Direction SOUTHWEST = new Direction(1, -1);
    public static Direction SOUTHEAST = new Direction(1, 1);

    private Direction(int rowOffset, int colOffset)
    {
	this.rowOffset = rowOffset;
	this.colOffset = colOffset;
    }

    public int getRowOffset()
    {
	return rowOffset;
    }

    public int getColOffset()
    {
	return colOffset;
    }

}
